<!-- 资料管理 -->
<style lang="less" scoped>
.iframeStyle {
  width: 100%;
  height: calc(~"100vh - 70px");
}
</style>


<template>
    <div>
        <iframe class="iframeStyle" :src="src"></iframe>
    </div>
</template>


<script>
import {domain2} from 'global/setting'
export default {
  data () {
    return {
      src: ''
    }
  },
  methods: {
    changeSrc (data) {
      this.src = domain2 + '/data/swproject/template/' + data + '.pdf'
    }
  },
  created () {
    this.changeSrc(this.$route.query.type)
  }
}
</script>
